RewriteEngine on
RewriteRule ^([A-Za-z0-9]*)$ index.php?ref=$1 [L]
